package com.example.rice;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@Slf4j
@MapperScan("com.example.rice.mapper")
@ServletComponentScan
@EnableTransactionManagement//启动事务注解
@EnableCaching //开始缓存
public class RiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(RiceApplication.class, args);
        log.info("饭饭外卖项目启动成功！！！");
    }

}
